package com.duoec.doc.doclet.exporter.impl;

import com.alibaba.fastjson.JSONObject;
import com.duoec.doc.doclet.exporter.Exporter;
import com.duoec.doc.doclet.pojo.Chapter;

import java.util.List;

/**
 * @author xuwenzhen
 * @date 18/1/21
 */
public class ConsoleExporter implements Exporter {
    @Override
    public String exporterName() {
        return "console";
    }

    @Override
    public boolean export(List<Chapter> chapterList) {
        System.out.println(JSONObject.toJSONString(chapterList, true));
        return true;
    }
}
